package com.itaem.community.modules.infrastructure.user.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

/**
 * <p>项目名称: community </p>
 * <p>文件名称: UserIdCardAuthenticationResultDTO </p>
 * <p>描述: [类型描述] </p>
 * <p>创建时间: 2020/11/16 </p>
 * <p>作者信息: tomato</p>
 *
 * @author tomato
 * @version v1.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class UserIdCardAuthenticationResultDTO {

    /**
     * 存在此身份证记录的状态码
      */
    public static final String INFO_EXIST = "0";

    /**
     * 二要素认证成功的结果
     */
    public static final String AUTH_SUCCESS = "1";

    /**
     * code : 0
     * message : 成功
     * result : {"name":"冯天","idcard":"350301198011129422","res":"1","description":"一致","sex":"男","birthday":"19940320","address":"江西省南昌市东湖区"}
     */

    private String code;
    private String message;
    private ResultBean result;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ResultBean {
        /**
         * name : 冯天
         * idcard : 350301198011129422
         * res : 1
         * description : 一致
         * sex : 男
         * birthday : 19940320
         * address : 江西省南昌市东湖区
         */

        private String name;
        private String idcard;
        private String res;
        private String description;
        private String sex;
        private String birthday;
        private String address;
    }
}
